package com.lksoft.bz;

import java.io.Serializable;

/**
 * Bead type used in a stich pattern
 * 
 * @author lake
 *
 */
public class BeadUsage implements Serializable {
	private static final long serialVersionUID = -2418864849404874176L;
	
	/** Bead */
	private Bead bead;
	/** Count */
	private int count;
	/** Optional letter */
	private char letter;
	
	public BeadUsage(Bead bead, int count, char letter) {
		super();
		this.bead = bead;
		this.count = count;
		this.letter = letter;
	}

	/**
	 * @return the bead
	 */
	public Bead getBead() {
		return bead;
	}

	/**
	 * @return the count
	 */
	public int getCount() {
		return count;
	}

	/**
	 * @return the letter
	 */
	public char getLetter() {
		return letter;
	}

	/**
	 * Decrement count
	 */
	public void decrement() {
		count--;
	}
	
	/**
	 * Increment count
	 */
	public void increment() {
		count++;
	}

	public void setLetter(char letter) {
		this.letter = letter;
	}
}
